package com.sfj.config;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author kaka
 * @Date 2025/5/1
 */
@Configuration
public class TestingConfig {

    @Bean
    @ConditionalOnProperty(value = "domain.config.redis",havingValue = "true")
    public void api() {
        System.out.println("111");
    }

    @Bean
    @ConditionalOnProperty(value = "domain.config.mysql",havingValue = "true")
    public void api2() {
        System.out.println("2222");
    }

}
